<?php

namespace app\common;


use app\model\Config;
use app\model\Users;
use app\Request;

class Report
{
    /**
     * 判断是否够信用分
     */
    static function check($uid)
    {
        $credit_config = Config::where(['name'=>'credit'])->value('value');
        $credit = Users::where(['id'=>$uid])->value('credit');
        if ($credit<=$credit_config) {
            return false;
        }else{
            return true;
        }
    }
}